x86: check for canonical address before doing page walks
authorJan Beulich <jbeulich@suse.com>
Fri, 11 Oct 2013 07:31:16 +0000 (09:31 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 11 Oct 2013 07:31:16 +0000 (09:31 +0200)
commit6fd9b0361e2eb5a7f12bdd5cbf7e42c0d1937d26
treed38d718fbf296ee356eb3fdb68f67070cb62dbc1
parent4b46e7be783df641b2889e514e85643febd378c2
x86: check for canonical address before doing page walks

... as there doesn't really exists any valid mapping for them.

Particularly in the case of do_page_walk() this also avoids returning
non-NULL for such invalid input.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/x86_64/mm.c
xen/arch/x86/x86_64/traps.c